package com.singfee.gisservice.mapper;

import com.singfee.gisservice.entity.Function;
import com.singfee.gisservice.entity.Params;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface PostGISMapper {

    String getFeatures(Params params);

    List<Map> getFeatureInfo(Params params);

    List<Map> getData(Params params);

    @Select("${_parameter}")
    List<Map> sqlRun(String sql);

    @Select("select ${function}")
    List<String> geometryOperator(Function function);

    List<Map> totalArea(Params params);
}
